package com.cskaoyan.bean.po.wx_cart;

import com.baomidou.mybatisplus.annotation.TableName;
import com.cskaoyan.util.common.StringUtils;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @program: market
 * @description: 购物车项目信息
 * @author: zhong
 * @create: 2022-07-19 16:47
 **/
@Data
@TableName("`market_cart`")
public class CartItemInfo {
    private Integer id;
    private Integer userId;
    private Integer goodsId;
    private String goodsSn;
    private String goodsName;
    private Integer productId;
    private BigDecimal price;
    private Short number;
    private String[] specifications;
    private Boolean checked;
    private String picUrl;
    private Date addTime;
    private Date updateTime;
    private Boolean deleted;

    public void setSpecifications(String specifications) {
        this.specifications = StringUtils.splitJsonArrays(specifications);
    }
}
